<template>
	<view>
		<switch  @change="Change" />
		<button type="primary" :loading="istrue">确定</button>
	</view>
</template>

<script setup>
	import { ref } from 'vue';
	
	const istrue = ref(false);
	
	function Change(e){
		
		istrue.value = e.detail.value;
		
	}
	
</script>

<style>
	       
</style>
